-
Notifications
You must be signed in to change notification settings - Fork 18
IBX-10735: Leverage new Content Type Search API #1730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.6
Are you sure you want to change the base?
Conversation
e991be0
to
0462d36
Compare
findContentTypes
PAPI contract in content type list
|
||
$adapter = new ContentTypeListAdapter($this->contentTypeService, $languages); | ||
|
||
self::assertEquals( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self::assertEquals( | |
self::assertSame( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertSame
doesn't seem to work, these won't be exactly the same types?
$this->contentTypeService | ||
->expects(self::once()) | ||
->method('findContentTypes') | ||
->with($this->isInstanceOf(ContentTypeQuery::class), $languages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may also want to make the check more specific, utilizing
self::callback(function (ContentTypeQuery $query): bool {
// ...
return true;
})
constraint.
->with($this->isInstanceOf(ContentTypeQuery::class), $languages) | |
->with(self::isInstanceOf(ContentTypeQuery::class), $languages) |
|
Related PRs:
ibexa/core#633
Description:
This PR replaces the old
ArrayAdapter
with a dedicated one that utilizes a newfindContentTypes
PAPI contract.For QA:
We need to check whether the content type list behaves exactly the same as before, potentially we could check what's the performance gain.
Documentation: